/* Document body styles */
body.light-theme {
    background-color: #ffffff;
    color: #333333;
}

body.dark-theme {
    background-color: #333333;
    color: #ffffff;
}


/* Hyperlink, hightlight, and text styles */
a {
    color: #bd5d38;
    text-decoration: none;
    background-color: transparent;
}

a:hover {
    color: #824027;
    text-decoration: underline;
}

hightlight {
    color: #bd5d38;
    text-decoration: none;
    background-color: transparent;
}

.text-primary {
    color: #4c5157 !important;
}


/* Styles for user selection */
::selection {
    background-color: #ffb699;
}

/* Light theme style for user selection */
.light-theme ::selection {
    background-color: #ffb699;
}

/* Dark theme style for user selection */
.dark-theme ::selection {
    background-color: #545454;
}


/* Code-style text for research interest */
code {
    font-family: "Consolas";
    color: rgb(0, 0, 0);
    background-color: #f1f1f1;
    padding: 2px;
    padding-left: 5px;
    opacity: 0.75;
    font-size: 86%;
}


/* Border styles for profile picture */
.ring-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    box-sizing: border-box;
    position: relative;
}

.ring::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    padding: 4px;
    box-sizing: border-box;
    background: linear-gradient(to right, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    mask-composite: exclude;
}

.hollow-ring {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    z-index: 1;
}

.light-theme .hollow-ring {
    background-color: #ffffff;
}

.dark-theme .hollow-ring {
    background-color: #333333;
}

.profile-image {
    width: 152px;
    height: 152px;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 5px solid #ffffff;
    z-index: 2;
}

.light-theme .profile-image {
    border: 5px solid #ffffff
}

.dark-theme .profile-image {
    border: 5px solid #333333
}


/* Styles for emoji indicator with emoji */
.emoji-indicator {
    font-size: medium;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #efefef;
    /* position: absolute;
    bottom: 5px;
    right: 1px; */
    position: relative;
    top: 112px;
    left: 107px;
    border: 4px solid #ffffff;
    z-index: 1000;
}

.light-theme .emoji-indicator {
    border: 4px solid #ffffff;
    background-color: #efefef;
}

.dark-theme .emoji-indicator {
    border: 4px solid #333333;
    background-color: #787878;
}

.emoji-indicator .hover-text {
    display: none;
    white-space: nowrap;
    margin-left: 2px;
    /* margin-right: 4px; */
}

.emoji-indicator:hover .hover-text {
    display: inline;
}

.emoji-indicator:hover {
    border-radius: 21.5px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Handle for social icons */
.social-icons .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3.70rem;
    width: 3.70rem;
    color: #495057;
    border-radius: 100%;
    font-size: 1.5rem;
    margin-right: 0.25rem;
    padding-top: 4px;
    transition: transform 0.3s;
}

.social-icons .social-icon:hover {
    transform: scale(1.30);
}

.social-icons .social-icon:last-child {
    margin-right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Styles for project list */
#projects {
    margin: 0px;
}

.project {
    margin: 0px;
}


/* Styles for filter buttons */
#filters .filter-button {
    padding: 4px 7px;
    border: 1px solid #333333;
    border-radius: 10px;
    background-color: transparent;
    color: #333333;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

#filters .filter-button:hover {
    background-color: rgba(194, 194, 194, 0.45);
}

#filters .filter-button.active {
    background-color: rgba(194, 194, 194, 0.45);
}


/* Light theme styles for filter button */
.light-theme #filters .filter-button {
    border: 1px solid #333333;
    color: #333333;
}


/* Dark theme styles for filter button */
.dark-theme #filters .filter-button {
    border: 1px solid #ffffff;
    color: #ffffff;
}


/* Styles for pager buttons */
.isotope-pager {
    display: flex;
    list-style-type: none;
    align-items: center;
    justify-content: center;
}

.isotope-pager .pager {
    display: block;
    padding: 4px 7px;
    background-color: transparent;
    border: 1px solid #333333;
    margin: 0 5px;
    border-radius: 7px;
}

.isotope-pager .pager:hover {
    background-color: rgba(194, 194, 194, 0.45);
    cursor: pointer;
}

.isotope-pager .pager.active {
    background-color: rgba(194, 194, 194, 0.45);
}


/* Light theme styles for pager button */
.light-theme .isotope-pager .pager {
    border: 1px solid #333333;
    color: #333333;
}


/* Dark theme styles for pager button */
.dark-theme .isotope-pager .pager {
    border: 1px solid #ffffff;
    color: #ffffff;
}


/* Disabled stye for pager buttons */
.isotope-pager .pager:disabled {
    background-color: #cccccc;
    color: #666666;
    cursor: default;
    opacity: 0.5;
    border: 1px solid #aaaaaa;
}


/* More/Less button for widgets */
.collapse.in {
    display: inline !important;
}


/* Handle for gallery and pictures in gallery */
div.gallery {
    margin: 3px;
    border: 1px solid #ccc;
    border-radius: 8px;
    float: left;
    width: 212px;
}

div.gallery:nth-child(8n+1) {
    clear: both;
}

div.gallery img {
    width: 100%;
    height: auto;
    border-radius: 7px;
}

div.desc {
    padding: 8px;
    text-align: center;
}


/* Styles for update cards */
.news-card {
    background-color: none;
    width: 100%;
    height: 291px;
    /* height: 365px; */
    border-radius: 7px;
    margin: 3px;
    border: 1px solid #ccc;
    float: left;
    width: 180px;
    /* width: 211px; */
    display: flex;
    flex-direction: column;
}

.news-desc {
    flex-grow: 1;
    padding: 0.4rem 1rem 0rem 1rem;
    font-size: 13px;
}

.news-time {
    color: grey;
    padding: 0rem 1rem 0.6rem 1rem;
    font-size: 12px;
}

.owl-carousel .owl-nav .owl-prev,
.owl-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    font-size: 60px;
    padding: 20px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.owl-carousel .owl-nav .owl-prev {
    left: -30px;
}

.owl-carousel .owl-nav .owl-next {
    right: -33px;
}

.owl-carousel .owl-dots {
    display: none;
}

.owl-carousel {
    margin: 0;
    position: relative;
}


/* Back-to-top button styles */
#back-to-top-button {
    display: inline-block;
    background-color: #9faba6;
    width: 55px;
    height: 55px;
    text-align: center;
    border-radius: 7px;
    position: fixed;
    bottom: 30px;
    right: 30px;
    transition: background-color .3s, opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#back-to-top-button::after {
    content: "\f077";
    font-family: FontAwesome;
    font-weight: normal;
    font-style: normal;
    font-size: 2em;
    line-height: 50px;
    color: #fff;
}

#back-to-top-button:hover {
    cursor: pointer;
    background-color: #767f7b;
}

#back-to-top-button:active {
    background-color: #9faba6;
}

#back-to-top-button.show {
    opacity: 0.70;
    visibility: visible;
}


/* Toggle theme button styles */
.toggle-theme-button {
    width: 55px;
    height: 55px;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}


/* Light theme styles for toggle theme button */
.light-theme .toggle-theme-button {
    background-color: #919191;
    color: #ffffff;
}


/* Dark theme styles for toggle theme button */
.dark-theme .toggle-theme-button {
    background-color: #ccc;
    color: #333333;
}


/* Container for the assistant icon */
.popup-icon-container {
    position: fixed;
    left: 10px;
    bottom: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
}


/* Assitant icon styles */
.icon {
    font-size: 30px;
    color: white;
    padding: 5px;
    border-radius: 50%;
}


/* Sppech balloon styles */
.speech-balloon {
    padding: 10px;
    border-radius: 10px;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    max-width: 200px;
    margin-left: 0px;
    font-size: 14px;
}


/* Light theme for speech balloon */
.light-theme .speech-balloon {
    background-color: #f5f5f5;
    color: black;
    border: 2px solid #ddd;
}


/* Dark theme for speech balloon */
.dark-theme .speech-balloon {
    background-color: #495057;
    color: white;
    border: 2px solid #555;
}


/* Dismissal area styles for the assistant icon */
.dismissal-area {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(176, 176, 176, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    z-index: 500;
    /* 500 := below the icon but above other content */
    display: none;
}

.hidden {
    display: none;
}


/* Styles for progress bar */
.progress-bar-container {
    width: 100%;
    height: 1px;
    background: #f1f1f1;
    position: fixed;
    /* top: 0; */
    top: 3.5rem;
    z-index: 1;
}

.progress-bar {
    height: 1px;
    background: #bd5d38;
    width: 0%;
}

.light-theme .progress-bar-container {
    background: #f1f1f1;
}

.dark-theme .progress-bar-container {
    background: #888;
}


/* New style for webpage scrollbar */
::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background-color: #888;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

::-webkit-scrollbar {
    width: 10px;
}


/* Styles for middle-layer moving-particle canvas */
canvas {
    position: fixed;
    /* top: 0; */
    top: 3.5rem;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.custom-margin {  
    margin-top: 5rem; /* 根据需要调整这个值 */  
}

/* Top navigation bar style */

.navbar {
    position: fixed;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
}

.custom-offset {
    padding-top: 5rem;
    margin-top: -5rem;
}

/* ===== Beautify the Toggler button ===== */  
/* 1. Remove the navbar-toggler button's own border and background */  
.navbar-toggler {  
  border: none;  
  background-color: transparent;  
}  

/* 2. When the button is clicked or focused via keyboard, remove the default outline and apply a shadow */  
.navbar-toggler:focus {  
  outline: none;           /* Remove the browser’s default focus outline */  
  box-shadow: 0 0 0 0.25rem rgba(211, 214, 216, 0.25); /* Bootstrap’s classic blue shadow */  
}  
